/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webanovare.ruzzle.mgr.impl;

import com.webanovare.ruzzle.misc.Player;
import com.webanovare.ruzzle.misc.Trie;
import java.awt.Point;
import java.util.List;
import java.util.Map;

/**
 *
 * @author ekbga
 */
public class OpenGame extends GameState {
    public OpenGame(IHandleState g) {
        super(g);
    }
    
    @Override
    public void challenge(Player p) {
        super.g.setOpponent(p);
    }
    
    @Override
    public void accept() {
        super.g.changeToActive();
    }
    
    @Override
    public void decline() {
        super.g.removeOpponent();
    }
    
    @Override
    public Trie getTrie() {
        throw new UnsupportedOperationException("Not supported by state OpenGame.");
    }
    
    @Override
    public List<Character> getBoard() {
        throw new UnsupportedOperationException("Not supported by state OpenGame.");
    }
    
    @Override
    public Character[][] getBoardMatrix() {
        throw new UnsupportedOperationException("Not supported by state OpenGame.");
    }

    @Override
    public boolean addWord(List<Point> ps, boolean opponent) {
        throw new UnsupportedOperationException("Not supported by state OpenGame.");
    }

    @Override
    public int getOpponentPoints() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int getOwnerPoints() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Map<String, Integer> getOwnerStatistics() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Map<String, Integer> getOpponentStatistics() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
